using System;

namespace ClassEntities
{
    [Serializable]
    public class tblToChucThi
    {
        private int stt;
        private int idLopHoc;
        private string dsDeThi;
        private DateTime ngaythi;
        private string giothi;
        private string dsGiamKhao;
        private string dsGiaoVienChamThi;
        private int idKyThi;
        private tblDeThi dethi;
        private string tinhtrang;
        public string Tinhtrang
        {
            get { return tinhtrang; }
            set { tinhtrang = value; }
        }
        public tblToChucThi()
        { }
        public tblToChucThi(int stt, int idLopHoc, string dsDeThi, DateTime ngaythi, string giothi, string dsGiamKhao, string dsGiaoVienChamThi, int idKyThi, tblDeThi dethi, string tinhtrang)
        {
            this.stt = stt;
            this.idLopHoc = idLopHoc;
            this.dsDeThi = dsDeThi;
            this.ngaythi = ngaythi;
            this.giothi = giothi;
            this.dsGiamKhao = dsGiamKhao;
            this.dsGiaoVienChamThi = dsGiaoVienChamThi;
            this.idKyThi = idKyThi;
            this.dethi = dethi;
            this.tinhtrang = tinhtrang;
        }
        public tblToChucThi(int stt, int idLopHoc, string dsDeThi, DateTime ngaythi, string giothi, string dsGiamKhao, string dsGiaoVienChamThi, int idKyThi)
        {
            this.stt = stt;
            this.idLopHoc = idLopHoc;
            this.dsDeThi = dsDeThi;
            this.ngaythi = ngaythi;
            this.giothi = giothi;
            this.dsGiamKhao = dsGiamKhao;
            this.dsGiaoVienChamThi = dsGiaoVienChamThi;
            this.idKyThi = idKyThi;
        }
        public ClassEntities.tblDeThi Dethi
        {
            get { return dethi; }
            set { dethi = value; }
        }
        public int Stt
        {
            get { return this.stt; }
            set
            {
                if (value == null)
                    throw new Exception("stt not allow nullvalue.");
                this.stt = value;
            }
        }
        public int IdLopHoc
        {
            get { return this.idLopHoc; }
            set { this.idLopHoc = value; }
        }
        public string DsDeThi
        {
            get { return this.dsDeThi; }
            set { this.dsDeThi = value; }
        }
        public DateTime Ngaythi
        {
            get { return this.ngaythi; }
            set { this.ngaythi = value; }
        }
        public string Giothi
        {
            get { return this.giothi; }
            set { this.giothi = value; }
        }
        public string DsGiamKhao
        {
            get { return this.dsGiamKhao; }
            set { this.dsGiamKhao = value; }
        }
        public string DsGiaoVienChamThi
        {
            get { return this.dsGiaoVienChamThi; }
            set { this.dsGiaoVienChamThi = value; }
        }
        public int IdKyThi
        {
            get { return this.idKyThi; }
            set { this.idKyThi = value; }
        }
        public override string ToString()
        {
            return this.stt + "; " + this.idLopHoc + "; " + this.dsDeThi + "; " + this.ngaythi + "; " + this.giothi + "; " + this.dsGiamKhao + "; " + this.dsGiaoVienChamThi + "; " + this.idKyThi + "; ";
        }
        public override bool Equals(Object obj)
        {
            tblToChucThi me = (tblToChucThi)obj;
            bool ret = this.Stt.Equals(me.Stt);
            return ret;
        }
        public override int GetHashCode()
        {
            return this.Stt.GetHashCode();
        }

    }
}